package address

import "time"

type Address struct {
	Address_id    int       `json:"address_id"`
	UserId        int       `json:"user_id"`
	RecipientName string    `json:"recipient_name"`
	PhoneNumber   string    `json:"phone_number"`
	Province      string    `json:"province"`
	City          string    `json:"city"`
	District      string    `json:"district"`
	Street        string    `json:"street"`
	PostalCode    string    `json:"postal_code"`
	IsDefault     int       `json:"is_default"`
	CreatedAt     time.Time `json:"created_at"`
	UpdatedAt     time.Time `json:"updated_at"`
}

func (Address) TableName() string {
	return "zlg_address"
}
